/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSkyRoom.manager.phase;

import ru.jSkyRoom.manager.LocaleManager;
import ru.jSkyRoom.support.recoder.DoubleStringRecoder;
import ru.jSkyRoom.support.recoder.OneStringRecoder;
import ru.jSkyRoom.support.recoder.RecoderFacade;
import ru.jSkyRoom.support.recoder.StringRecoder;

/**
 *
 * @author Rakev
 */
public class SelectLocalePhase {

    private StartPhase startPhase;

    public SelectLocalePhase(StartPhase startPhase) {
        this.startPhase = startPhase;
    }

    public StartPhase setCodePoint(String codePoint1, String codePoint2) {
        getLocaleManager().setCodePoint(codePoint1, codePoint2);
        return startPhase;
    }

    public StartPhase setCodePoint(String codePoint) {
        getLocaleManager().setCodePoint(codePoint);
        return startPhase;
    }

    public StartPhase selectRULocale() {
        getLocaleManager().selectRULocale();
        return startPhase;
    }

    private LocaleManager getLocaleManager() {
        return LocaleManager.getInstance();
    }
}
